<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>统计信息</title>
	<%@ include file="../../common/common.jsp"%>
	
 
	<script>
		$(function(){
			$('#main-info').treegrid({
				title:'统计',
				iconCls:'icon-save',
				width:900,
				height:330,
				nowrap: false,
				rownumbers: true,
				animate:true,
				collapsible:true,
				url:'treegrid_data.json',
				idField:'code',
				treeField:'code',
				pagination:"true",
				frozenColumns:[[
	                {title:'合同名称',field:'code',width:200,
		                formatter:function(value){
		                	return '<span style="color:red">'+value+'</span>';
		                }
	                }
				]],
				columns:[[
					{field:'name',title:'创建时间',width:150},
					{field:'addr',title:'预算价格',width:220,rowspan:2},
					{field:'col4',title:'合同价格',width:150,rowspan:2},
					{field:'col4',title:'合同说明',width:150,rowspan:2}
				]],
				onBeforeLoad:function(row,param){
					if (row){
						$(this).treegrid('options').url = 'treegrid_subdata.json';
					} else {
						$(this).treegrid('options').url = 'treegrid_data.json';
					}
				},
				onContextMenu: function(e,row){
					e.preventDefault();
					$(this).treegrid('unselectAll');
					$(this).treegrid('select', row.code);
					$('#mm').menu('show', {
						left: e.pageX,
						top: e.pageY
					});
				}
			});
		});

		
		
	</script>
</head>
<body>
	<!-- 查询区域 -->
	
	<div>
			日期 开始: <input class="easyui-datebox" style="width:100px">
			至: <input class="easyui-datebox" style="width:80px">
			&nbsp;	&nbsp;	&nbsp;
			公司: 
			<input  style="width:100px" id="ct_id" name="ct_name">
			&nbsp;	&nbsp;	&nbsp;		
			<a href="#" class="easyui-linkbutton" iconCls="icon-search">统计</a>
    </div>
		
	
	<div style="height:100px">
	<table id="main-info"></table>
	</div>
	
</body>
</html>